emacs.git
14 years agoshr.el (shr-put-image-function): New variable.
Katsumi Yamaoka [Tue, 10 May 2011 03:14:44 +0000 (03:14 +0000)]
shr.el (shr-put-image-function): New variable.
 (shr-image-fetched, shr-image-displayer, shr-tag-img): Funcall it.
 (shr-put-image): Return scaled image.
gnus-art.el (gnus-shr-put-image): New function.
 (gnus-article-prepare-display): Bind shr-put-image-function to it.
gnus-html.el (gnus-html-wash-images): Register scaled images, not original ones, as deletable.

14 years agoDeprecate using "mode:" to enable minor modes (bug#8613)
Glenn Morris [Tue, 10 May 2011 02:31:42 +0000 (19:31 -0700)]
Deprecate using "mode:" to enable minor modes (bug#8613)

* lisp/files.el (hack-one-local-variable-eval-safep):
Consider "eval: (foo-mode)" to be safe.

* doc/emacs/custom.texi (Specifying File Variables):
Deprecate using mode: for minor modes.

* etc/NEWS: Mention this.

* lisp/doc-view.el, lisp/net/soap-client.el:
Change "mode:" minor-mode file local variables to use "eval:".

14 years agodiary-lib.el doc fixes.
Glenn Morris [Tue, 10 May 2011 02:22:55 +0000 (19:22 -0700)]
diary-lib.el doc fixes.

* lisp/calendar/diary-lib.el (diary-list-entries-hook)
(diary-mark-entries-hook, diary-nongregorian-listing-hook)
(diary-nongregorian-marking-hook, diary-list-entries)
(diary-include-other-diary-files, diary-mark-entries)
(diary-mark-included-diary-files): Doc fixes.

14 years agolisp/misc.el: Require tabulated-list.el during compilation.
Juanma Barranquero [Mon, 9 May 2011 23:57:40 +0000 (01:57 +0200)]
lisp/misc.el: Require tabulated-list.el during compilation.

14 years ago* test/automated/occur-tests.el: Move from test/occur-testsuite.el.
Juri Linkov [Mon, 9 May 2011 23:21:32 +0000 (03:21 +0400)]
* test/automated/occur-tests.el: Move from test/occur-testsuite.el.
Convert to ERT.

14 years agoregistry.el (registry-full): Add convenience method. Fix logic.
Teodor Zlatanov [Mon, 9 May 2011 22:27:17 +0000 (22:27 +0000)]
registry.el (registry-full): Add convenience method.  Fix logic.
 (registry-insert): Use it.  Fix logic here too.
gnus-registry.el (gnus-registry-insert): Add wrapper that calls `registry-prune' if `registry-full' returns t.
 (gnus-registry-handle-action, gnus-registry-get-or-make-entry, gnus-registry-set-id-key, gnus-registry-usage-test): Use it.

14 years agoCall compilation-filter-hook in the no-async case too.
Chong Yidong [Mon, 9 May 2011 19:42:45 +0000 (15:42 -0400)]
Call compilation-filter-hook in the no-async case too.

* progmodes/compile.el (compilation-start): Run
compilation-filter-hook for the async case too.
(compilation-filter-hook): Doc fix.

14 years ago* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.
Stefan Monnier [Mon, 9 May 2011 19:41:14 +0000 (16:41 -0300)]
* lisp/gnus/nntp.el (nntp-open-connection): Set TCP keepalive option.

14 years agoAdd forgotten ChangeLog entry.
Deniz Dogan [Mon, 9 May 2011 17:50:47 +0000 (19:50 +0200)]
Add forgotten ChangeLog entry.

14 years ago* lisp/wdired.el: Remove outdated installation comment. Fix usage
Deniz Dogan [Mon, 9 May 2011 17:47:01 +0000 (19:47 +0200)]
* lisp/wdired.el: Remove outdated installation comment.  Fix usage
comment.

14 years agolisp/misc.el: Implement new command `list-dynamic-libraries'.
Juanma Barranquero [Mon, 9 May 2011 15:52:57 +0000 (17:52 +0200)]
lisp/misc.el: Implement new command `list-dynamic-libraries'.

* misc.el (list-dynamic-libraries--loaded-only-p): New variable.
  (list-dynamic-libraries--refresh): New function.
  (list-dynamic-libraries): New command.

14 years agoDefine a replacement for va_copy for MSVC.
Eli Zaretskii [Mon, 9 May 2011 13:35:56 +0000 (16:35 +0300)]
Define a replacement for va_copy for MSVC.

 nt/config.nt [_MSC_VER] (va_copy): Replacement for the MS compiler.

14 years ago* w32menu.c (set_frame_menubar): Fix submenu allocation.
Andreas Schwab [Mon, 9 May 2011 11:29:51 +0000 (13:29 +0200)]
* w32menu.c (set_frame_menubar): Fix submenu allocation.

14 years ago* configure.in: Require GnuTLS 2.6.x or higher.
Ted Zlatanov [Mon, 9 May 2011 10:40:26 +0000 (05:40 -0500)]
* configure.in: Require GnuTLS 2.6.x or higher.

14 years agoFix last change.
Chong Yidong [Mon, 9 May 2011 01:25:35 +0000 (21:25 -0400)]
Fix last change.

14 years agoDoc fix to compilation.txt.
Chong Yidong [Mon, 9 May 2011 01:24:57 +0000 (21:24 -0400)]
Doc fix to compilation.txt.

14 years agoVarious fixes to compilation-error-regexp-alist-alist.
Chong Yidong [Mon, 9 May 2011 01:24:00 +0000 (21:24 -0400)]
Various fixes to compilation-error-regexp-alist-alist.

* lisp/progmodes/compile.el (compilation-error-regexp-alist-alist): Fix
the ant regexp to handle end-line and end-column info from jikes.
Re-introduce maven regexp.  Give the ruby-Test::Unit regexp a
higher priority to avoid clobbering by gnu.

14 years agoAdd regression test for compilation-error-regexp-alist-alist.
Chong Yidong [Mon, 9 May 2011 01:22:05 +0000 (21:22 -0400)]
Add regression test for compilation-error-regexp-alist-alist.

* test/automated/compile-tests.el: New file.

14 years agoConvert test/comint-testsuite.el to ERT format.
Chong Yidong [Sun, 8 May 2011 21:43:07 +0000 (17:43 -0400)]
Convert test/comint-testsuite.el to ERT format.

14 years agoHandle calling defface on a face with existing theme settings (Bug#8454).
Chong Yidong [Sun, 8 May 2011 20:07:38 +0000 (16:07 -0400)]
Handle calling defface on a face with existing theme settings (Bug#8454).

* lisp/cus-face.el (custom-declare-face): Call custom-theme-recalc-face if
the face has existing theme settings.

14 years agoExpand file names during browse-url-of-dired-file (Bug#8259).
Ralph Schleicher [Sun, 8 May 2011 18:34:51 +0000 (14:34 -0400)]
Expand file names during browse-url-of-dired-file (Bug#8259).

* lisp/net/browse-url.el (browse-url-of-dired-file): Allow browsing of
special file names `.' and `..'.

14 years agoHandle "my" and "our" keywords in Perl imenu (Bug#8261).
Chong Yidong [Sun, 8 May 2011 18:23:11 +0000 (14:23 -0400)]
Handle "my" and "our" keywords in Perl imenu (Bug#8261).

* progmodes/perl-mode.el (perl-imenu-generic-expression): Only match
variables declared via `my' or `our'.

14 years agoPerform grep-mode's buffer modifications in a process filter (Bug#7952)
Chong Yidong [Sun, 8 May 2011 05:17:17 +0000 (01:17 -0400)]
Perform grep-mode's buffer modifications in a process filter (Bug#7952)

* progmodes/grep.el (grep-mode-font-lock-keywords): Remove
buffer-changing entries.
(grep-filter): New function.
(grep-mode): Add it to compilation-filter-hook.

* progmodes/compile.el (compilation-filter-hook)
(compilation-filter-start): New defvars.
(compilation-filter): Call compilation-filter-hook prior to
updating the process mark.

14 years ago* lisp/emacs-lisp/eieio.el (defmethod): Fix typo in last change.
Stefan Monnier [Sun, 8 May 2011 02:33:28 +0000 (23:33 -0300)]
* lisp/emacs-lisp/eieio.el (defmethod): Fix typo in last change.

14 years agoFix bug #8595 with setting mailclient-send-it on MS-Windows.
Eli Zaretskii [Sat, 7 May 2011 17:58:40 +0000 (20:58 +0300)]
Fix bug #8595 with setting mailclient-send-it on MS-Windows.

 lisp/mail/sendmail.el (send-mail-function): On MS-Windows, default to
 mailclient-send-it even if window-system is nil.

14 years agoRemove (tiny change) marker from author now with general assignment,
Glenn Morris [Sat, 7 May 2011 17:39:44 +0000 (10:39 -0700)]
Remove (tiny change) marker from author now with general assignment,

14 years agoFix bug #8597 with setting frame background mode on w32 console.
Eli Zaretskii [Sat, 7 May 2011 15:44:19 +0000 (18:44 +0300)]
Fix bug #8597 with setting frame background mode on w32 console.

 src/w32console.c (Fset_screen_color): Doc fix.
 (Fget_screen_color): New function.
 (syms_of_ntterm): Defsubr it.
 lisp/term/w32console.el (terminal-init-w32console): Call
 get-screen-color and use its output to set the frame
 background-mode.

14 years agoAdapt the MS-DOS build to latest changes.
Eli Zaretskii [Sat, 7 May 2011 11:28:55 +0000 (14:28 +0300)]
Adapt the MS-DOS build to latest changes.

 src/callproc.c (call_process_cleanup): Don't close and unlink the
 temporary file if Fcall_process didn't create it in the first
 place.
 (Fcall_process): Don't create tempfile if stdout of the child
 process will be redirected to a file specified with `:file'.
 Don't try to re-open tempfile in that case, and set fd[0] to -1 as
 cue to call_process_cleanup not to close that handle.
 msdos/inttypes.h: Include stdint.h.
 (uintmax_t): Don't define, it is defined in stdint.h.
 msdos/sedlibmk.inp (am__append_1): Edit to comment out.
 (am__append_2): Edit to expose.
 (NEXT_AS_FIRST_DIRECTIVE_STDARG_H, NEXT_STDARG_H, STDARG_H): Edit
 to empty.
 (@GL_GENERATE_STDARG_H_TRUE@, @GL_GENERATE_STDARG_H_FALSE@): Edit
 to comment out corresponding lines.

14 years agoFix changes in revno 104064 for MS-DOS.
Eli Zaretskii [Sat, 7 May 2011 11:25:05 +0000 (14:25 +0300)]
Fix changes in revno 104064 for MS-DOS.

 src/callproc.c (call_process_cleanup): Don't close and unlink the
 temporary file if Fcall_process didn't create it in the first
 place.
 (Fcall_process): Don't create tempfile if stdout of the child
 process will be redirected to a file specified with `:file'.
 Don't try to re-open tempfile in that case, and set fd[0] to -1 as
 cue to call_process_cleanup not to close that handle.

14 years agoshr.el (shr-link): Make shr-link inherit from link by default.
Julien Danjou [Sat, 7 May 2011 10:41:20 +0000 (10:41 +0000)]
shr.el (shr-link): Make shr-link inherit from link by default.

14 years agoAdapt MS-DOS configury to latest changes.
Eli Zaretskii [Sat, 7 May 2011 10:24:55 +0000 (13:24 +0300)]
Adapt MS-DOS configury to latest changes.

 msdos/inttypes.h: Include stdint.h.
 (uintmax_t): Don't define, it is defined in stdint.h.
 msdos/sedlibmk.inp (am__append_1): Edit to comment out.
 (am__append_2): Edit to expose.
 (NEXT_AS_FIRST_DIRECTIVE_STDARG_H, NEXT_STDARG_H, STDARG_H): Edit
 to empty.
 (@GL_GENERATE_STDARG_H_TRUE@, @GL_GENERATE_STDARG_H_FALSE@): Edit
 to comment out corresponding lines.

14 years agoNew default value of `ange-ftp-binary-file-name-regexp'.
Michael Albinus [Sat, 7 May 2011 07:45:35 +0000 (09:45 +0200)]
New default value of `ange-ftp-binary-file-name-regexp'.

14 years agoMake bytecomp.el understand that defmethod defines functions.
Stefan Monnier [Sat, 7 May 2011 04:03:49 +0000 (01:03 -0300)]
Make bytecomp.el understand that defmethod defines functions.
* lisp/emacs-lisp/eieio.el (eieio--defalias, eieio--defgeneric-init-form):
New functions.
(defgeneric, eieio--defmethod): Use them.
(eieio-defgeneric): Remove.
(defmethod): Call defgeneric in a way visible to the byte-compiler.

14 years ago* nt/configure.bat: Renamed the fusercflags variable to escusercflags
Ben Key [Sat, 7 May 2011 04:00:12 +0000 (23:00 -0500)]
* nt/configure.bat: Renamed the fusercflags variable to escusercflags
so that the variable name better matches its purpose, to be identical
to usercflags with the exception that all quotes are escaped by the \
character.

Renamed the fuserldflags variable to escuserldflags so that the
variable name better matches its purpose, to be identical to
userldflags with the exception that all quotes are escaped by the \
character.

A new ESC_USER_CFLAGS variable is written to config.settings.  This
variable has the same value as the escusercflags variable.

* nt/gmake.defs, nt/nmake.defs: Added the variable ESC_CFLAGS.  This
variable is identical to the CFLAGS variable except that it includes
the new ESC_USER_CFLAGS variable instead of USER_CFLAGS.

* src/makefile.w32-in: The bootstrap-temacs rule now makes use of one
of two shell specific rules, either bootstrap-temacs-CMD or
bootstrap-temacs-SH.  The bootstrap-temacs-SH rule is identical to the
previous implementation of the bootstrap-temacs rule.  The
bootstrap-temacs-CMD rule is similar to the previous implementation of
the bootstrap-temacs rule except that it makes use of the ESC_CFLAGS
variable instead of the CFLAGS variable.

These changes are required to extend my earlier fix to add support for
--cflags and --ldflags options that include quotes so that it works
whether make uses cmd or sh as the shell.

14 years agotimeclock.el trivia.
Glenn Morris [Sat, 7 May 2011 01:24:04 +0000 (18:24 -0700)]
timeclock.el trivia.

* lisp/calendar/timeclock.el (timeclock-log-data): Remove unused local.
Use let rather than let*.
(timeclock-find-discrep): Remove unused local.

14 years ago* doc/emacs/cal-xtra.texi (Sexp Diary Entries): Mention diary-hebrew-birthday.
Glenn Morris [Sat, 7 May 2011 01:22:01 +0000 (18:22 -0700)]
* doc/emacs/cal-xtra.texi (Sexp Diary Entries): Mention diary-hebrew-birthday.

14 years ago* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.
Glenn Morris [Sat, 7 May 2011 01:20:47 +0000 (18:20 -0700)]
* lisp/calendar/diary-lib.el (diary-comment-start): Doc fix.

14 years ago* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.
Glenn Morris [Sat, 7 May 2011 01:19:27 +0000 (18:19 -0700)]
* lisp/calendar/appt.el (appt-time-msg-list): Doc fix.

14 years agoshr.el (shr-urlify, shr-link): Fix shr-link face.
Teodor Zlatanov [Fri, 6 May 2011 23:33:12 +0000 (23:33 +0000)]
shr.el (shr-urlify, shr-link): Fix shr-link face.

14 years ago* dbusbind.c (QCdbus_type_unix_fd): Declare static.
Michael Albinus [Fri, 6 May 2011 22:12:31 +0000 (00:12 +0200)]
* dbusbind.c (QCdbus_type_unix_fd): Declare static.
(xd_remove_watch): Don't check QCdbus_type_unix_fd for SYMBOLP, it
is a constant.
(Fdbus_init_bus, xd_read_queued_messages): Bus can be a symbol or
a string.  Handle both cases.
(Fdbus_call_method_asynchronously, Fdbus_register_signal)
(Fdbus_register_method): Use Qinvalid_function.

14 years agoapropos.el (apropos-print-doc): Only use emacs-lisp-docstring-fill-column when it...
Noah Friedman [Fri, 6 May 2011 19:59:17 +0000 (12:59 -0700)]
apropos.el (apropos-print-doc): Only use emacs-lisp-docstring-fill-column when it is bound to an integer, per that variable's documentation.

14 years ago* lisp/lpr.el (print-region-1): Echo lpr-program's output, so error messages
Stefan Monnier [Fri, 6 May 2011 16:38:02 +0000 (13:38 -0300)]
* lisp/lpr.el (print-region-1): Echo lpr-program's output, so error messages
and warnings are not silently discarded (e.g. use "-d" instead of "-P").

14 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Fri, 6 May 2011 15:37:11 +0000 (17:37 +0200)]
src/makefile.w32-in: Update dependencies.

14 years agoAdapt Windows include files to latest changes.
Eli Zaretskii [Fri, 6 May 2011 12:09:08 +0000 (15:09 +0300)]
Adapt Windows include files to latest changes.

 nt/inc/inttypes.h [!__MINGW32__]: Include stdint.h.  Move the
 definition of uintmax_t from here...
 nt/inc/stdint.h (uintmax_t): ...to here.
 (intptr_t) [!__GNUC__]: New typedef.

14 years agoFix the MS-Windows build broken by revision 104134.
Eli Zaretskii [Fri, 6 May 2011 11:26:45 +0000 (14:26 +0300)]
Fix the MS-Windows build broken by revision 104134.

 src/lread.c: Include limits.h.

14 years agoAuto-commit of generated files.
Glenn Morris [Fri, 6 May 2011 10:19:05 +0000 (06:19 -0400)]
Auto-commit of generated files.

14 years ago* lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change.
Glenn Morris [Fri, 6 May 2011 07:30:20 +0000 (00:30 -0700)]
* lisp/calendar/diary-lib.el (diary-add-to-list): Simplify previous change.

14 years agoChangeLog format fixes.
Glenn Morris [Fri, 6 May 2011 07:20:17 +0000 (00:20 -0700)]
ChangeLog format fixes.

14 years agoAllow per-appointment warning times.
Glenn Morris [Fri, 6 May 2011 07:14:30 +0000 (00:14 -0700)]
Allow per-appointment warning times.

* lisp/calendar/appt.el (appt-message-warning-time): Doc fix.
(appt-warning-time-regexp): New option.
(appt-make-list): Respect appt-message-warning-time.

* doc/emacs/calendar.texi (Appointments): Mention appt-warning-time-regexp.

* etc/NEWS: Mention this.

14 years agoDo not assume EMACS_INT is the same width as a pointer.
Paul Eggert [Fri, 6 May 2011 07:13:19 +0000 (00:13 -0700)]
Do not assume EMACS_INT is the same width as a pointer.

This prepares for a future patch that will prefer 64-bit EMACS_INT if
available.  That patch can be tried now, by compiling with -DWIDE_EMACS_INT,
but it is temporarily not the default so that it can be further tested.

Also, install some other fixes for problems discovered by the static
checking of GCC 4.6.0.

14 years agoMerge from mainline.
Paul Eggert [Fri, 6 May 2011 06:30:56 +0000 (23:30 -0700)]
Merge from mainline.

14 years agoMerge from gnulib.
Paul Eggert [Fri, 6 May 2011 06:03:30 +0000 (23:03 -0700)]
Merge from gnulib.

14 years agoTemporarily disable wider-than-pointer EMACS_INT.
Paul Eggert [Fri, 6 May 2011 05:55:01 +0000 (22:55 -0700)]
Temporarily disable wider-than-pointer EMACS_INT.

14 years agoAdd diary comments feature.
Glenn Morris [Fri, 6 May 2011 04:28:53 +0000 (21:28 -0700)]
Add diary comments feature.

* lisp/calendar/diary-lib.el (diary-comment-start, diary-comment-end):
New options.
(diary-add-to-list): Strip comments from the displayed string.
(diary-mode): Set comment-start and comment-end.

* doc/emacs/cal-xtra.texi (Fancy Diary Display): Mention diary comments.

* etc/NEWS: Mention this.

14 years agoSilence diff-mode.el compilation.
Glenn Morris [Fri, 6 May 2011 04:07:47 +0000 (21:07 -0700)]
Silence diff-mode.el compilation.

* lisp/vc/diff-mode.el (smerge-refine-subst): Declare.
(diff-refine-hunk): Don't require smerge-mode when compiling.

14 years agosrc/gnutls.c, src/image.c: Make function pointers static.
Juanma Barranquero [Fri, 6 May 2011 01:05:25 +0000 (03:05 +0200)]
src/gnutls.c, src/image.c: Make function pointers static.

14 years agolisp/simple.el (list-processes): Return nil as the docstring says.
Juanma Barranquero [Fri, 6 May 2011 01:02:49 +0000 (03:02 +0200)]
lisp/simple.el (list-processes): Return nil as the docstring says.

14 years agoshr.el (shr-urlify, shr-link): Still broken but at least doesn't error out because...
Teodor Zlatanov [Thu, 5 May 2011 22:12:41 +0000 (22:12 +0000)]
shr.el (shr-urlify, shr-link): Still broken but at least doesn't error out because the face is not a list.

14 years ago* src/lread.c (lisp_file_lexically_bound_p): Stop scanning at end
Andreas Schwab [Thu, 5 May 2011 16:56:39 +0000 (18:56 +0200)]
* src/lread.c (lisp_file_lexically_bound_p): Stop scanning at end
marker.  (Bug#8610)

14 years ago* net/ange-ftp.el (ange-ftp-binary-file-name-regexp): Set default to "".
Michael Albinus [Thu, 5 May 2011 10:22:14 +0000 (12:22 +0200)]
* net/ange-ftp.el (ange-ftp-binary-file-name-regexp): Set default to "".
(ange-ftp-write-region, ange-ftp-insert-file-contents)
(ange-ftp-copy-file-internal): Use only `ange-ftp-binary-file' for
determining of binary transfer.  (Bug#7383)

14 years ago* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix
Michael Albinus [Thu, 5 May 2011 09:48:43 +0000 (11:48 +0200)]
* net/tramp-sh.el (tramp-do-copy-or-rename-file-out-of-band): Fix
port computation bug.  (Bug#8618)

14 years ago* image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local.
Paul Eggert [Thu, 5 May 2011 07:23:07 +0000 (00:23 -0700)]
* image.c (Finit_image_library) [!HAVE_NTGUI]: Omit unused local.

14 years ago* lisp/gnus/gnus-start.el (gnus-propagate-marks): Declare.
Glenn Morris [Thu, 5 May 2011 06:56:54 +0000 (23:56 -0700)]
* lisp/gnus/gnus-start.el (gnus-propagate-marks): Declare.

14 years ago* allout-widgets.el (allout-widgets-mode-inhibit): Declare before use.
Glenn Morris [Thu, 5 May 2011 06:53:29 +0000 (23:53 -0700)]
* allout-widgets.el (allout-widgets-mode-inhibit): Declare before use.

14 years agoDeclarations in simple.el.
Glenn Morris [Thu, 5 May 2011 06:50:24 +0000 (23:50 -0700)]
Declarations in simple.el.

* lisp/simple.el (shell-dynamic-complete-functions)
(comint-dynamic-complete-functions): Declare.

14 years agoDeclaration fixes.
Glenn Morris [Thu, 5 May 2011 06:35:41 +0000 (23:35 -0700)]
Declaration fixes.

* lisp/net/network-stream.el (gnutls-negotiate): Fix declaration.

* lisp/simple.el (tabulated-list-print): Fix declaration.

* lisp/progmodes/gud.el (syntax-symbol, syntax-point):
Remove unnecessary and incorrect declarations.

14 years agoRevert to wraparound integer arithmetic, instead of going to float.
Paul Eggert [Thu, 5 May 2011 06:31:14 +0000 (23:31 -0700)]
Revert to wraparound integer arithmetic, instead of going to float.

14 years agoSmall check-declare fix.
Glenn Morris [Thu, 5 May 2011 06:27:24 +0000 (23:27 -0700)]
Small check-declare fix.

* lisp/emacs-lisp/check-declare.el (check-declare-scan):
Handle byte-compile-initial-macro-environment in bytecomp.el

14 years agoChangeLog merge fix, grumble.
Glenn Morris [Thu, 5 May 2011 06:25:24 +0000 (23:25 -0700)]
ChangeLog merge fix, grumble.

14 years agoComment typo.
Glenn Morris [Thu, 5 May 2011 06:04:38 +0000 (23:04 -0700)]
Comment typo.

14 years agoMerge from mainline.
Paul Eggert [Thu, 5 May 2011 05:31:24 +0000 (22:31 -0700)]
Merge from mainline.

14 years agoMerge from emacs-23; up to r100567.
Glenn Morris [Thu, 5 May 2011 04:00:38 +0000 (21:00 -0700)]
Merge from emacs-23; up to r100567.

14 years agoFix earlier half-done eieio-defmethod change.
Stefan Monnier [Thu, 5 May 2011 03:42:09 +0000 (00:42 -0300)]
Fix earlier half-done eieio-defmethod change.
* lisp/emacs-lisp/eieio.el (eieio--defmethod): Rename from eieio-defmethod.
Streamline and change calling convention.
(defmethod): Adjust accordingly and simplify.
(eieio-defclass): Fix broken calls to eieio-defmethod and redirect to
new eieio--defmethod.
(slot-boundp): Minor CSE simplification.

14 years agoStop bootstrap clobbering config.log (bug#765)
Glenn Morris [Thu, 5 May 2011 03:30:03 +0000 (20:30 -0700)]
Stop bootstrap clobbering config.log (bug#765)

* Makefile.in (bootstrap-clean): Save config.log.
(top_distclean): Delete config.log~.

14 years agoSmall addition to glasses.el (bug#8524)
Milan Zamazal [Thu, 5 May 2011 03:26:55 +0000 (20:26 -0700)]
Small addition to glasses.el (bug#8524)

* lisp/progmodes/glasses.el (glasses-separate-capital-groups): New option.
(glasses-make-readable): Use glasses-separate-capital-groups.

14 years ago* configure.bat: Added support for --cflags and --ldflags
Ben Key [Thu, 5 May 2011 02:56:16 +0000 (21:56 -0500)]
* configure.bat: Added support for --cflags and --ldflags
options that include quotes as long as command extensions are
enabled.  Specifically when -I, -L, and similar flags are used
to specify supplementary include and library directories a
directory name that includes spaces may now be used if it is
enclosed in quotes.

* INSTALL: Documented the change to configure.bat.

14 years agosrc/gnutls.c: Keep list of function aliases in alphabetical order.
Juanma Barranquero [Thu, 5 May 2011 02:18:36 +0000 (04:18 +0200)]
src/gnutls.c: Keep list of function aliases in alphabetical order.

14 years agoAdd fn_NAME alias for `gnutls_certificate_set_x509_key_file'.
Ted Zlatanov [Thu, 5 May 2011 02:05:36 +0000 (21:05 -0500)]
Add fn_NAME alias for `gnutls_certificate_set_x509_key_file'.

* gnutls.c (fn_gnutls_certificate_set_x509_key_file): Add alias to
`gnutls_certificate_set_x509_key_file'.

14 years agosrc/makefile.w32-in: Update dependencies.
Juanma Barranquero [Thu, 5 May 2011 00:20:44 +0000 (02:20 +0200)]
src/makefile.w32-in: Update dependencies.

14 years agolisp/emacs-lisp/warnings.el: Tiny fixes.
Juanma Barranquero [Thu, 5 May 2011 00:06:10 +0000 (02:06 +0200)]
lisp/emacs-lisp/warnings.el: Tiny fixes.

* emacs-lisp/warnings.el (warning-level-aliases): Reflow docstring.
  (warning-series): Doc fix.
  (display-warning): Don't try to create the buffer if we just found it.

14 years agosrc/gnutls.c: Remove unused parameter `fildes'.
Juanma Barranquero [Wed, 4 May 2011 23:56:09 +0000 (01:56 +0200)]
src/gnutls.c: Remove unused parameter `fildes'.

* gnutls.h (emacs_gnutls_write, emacs_gnutls_read):
* gnutls.c (emacs_gnutls_write, emacs_gnutls_read):
  Remove unused parameter `fildes'.
* process.c (read_process_output, send_process): Don't pass it.

14 years agoFix previous change: the library cache is defined in w32.c.
Juanma Barranquero [Wed, 4 May 2011 20:03:07 +0000 (22:03 +0200)]
Fix previous change: the library cache is defined in w32.c.

* image.c (CACHE_IMAGE_TYPE) [!HAVE_NTGUI]: Define to noop.
  (Finit_image_library): Wrap Vlibrary_cache on "#ifdef HAVE_NTGUI".

14 years agoMake autoloading commands prompt for autoload file (Bug#7989)
Chong Yidong [Wed, 4 May 2011 15:38:41 +0000 (11:38 -0400)]
Make autoloading commands prompt for autoload file (Bug#7989)

* emacs-lisp/autoload.el (generated-autoload-file): Set to nil.
(autoload-find-generated-file): New function.
(generate-file-autoloads): Bind generated-autoload-file to
buffer-file-name.
(update-file-autoloads, update-directory-autoloads): Use
autoload-find-generated-file.  If called interactively, prompt for
output file.
(batch-update-autoloads): Doc fix.

14 years agoImplement dynamic loading of GnuTLS on Windows.
Juanma Barranquero [Wed, 4 May 2011 14:03:16 +0000 (16:03 +0200)]
Implement dynamic loading of GnuTLS on Windows.

* lisp/term/w32-win.el (dynamic-library-alist): Add `gnutls'.

* nt/INSTALL: Clarify GnuTLS support.

* src/callproc.c, src/emacs.c: Include lisp.h before src/w32.h, not after.

* src/gnutls.c (Qgnutls_dll): Define.
  (DEF_GNUTLS_FN, LOAD_GNUTLS_FN): New macros.
  (gnutls_*): Declare function pointers.
  (init_gnutls_functions): New function to initialize function pointers.
  (emacs_gnutls_handshake, Fgnutls_error_string, Fgnutls_deinit)
  (emacs_gnutls_global_init, Fgnutls_bye): Use function pointers.
  (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
  Wrappers for gnutls_record_check_pending and gnutls_transport_set_errno.
  (emacs_gnutls_write, emacs_gnutls_read)
  (emacs_gnutls_handle_error, Fgnutls_error_fatalp)
  (Fgnutls_available_p): New function.
  (Fgnutls_boot): Call Fgnutls_available_p.  Use function pointers.
  (syms_of_gnutls) <Qgnutls_dll>: Initialize and staticpro it.
  (syms_of_gnutls) <Sgnutls_available_p>: defsubr it.

* src/gnutls.h (GNUTLS_EMACS_ERROR_NOT_LOADED): New macro.
  (emacs_gnutls_write, emacs_gnutls_read): Mark as extern.
  (emacs_gnutls_record_check_pending, emacs_gnutls_transport_set_errno):
  Declare.

* src/w32.c (QCloaded_from, Vlibrary_cache): Define.
  (w32_delayed_load): Move from image.c.  When loading a library, record
  its filename in the :loaded-from property of the library id.
  (globals_of_w32) <QCloaded_from, Vlibrary_cache>:
  Initialize and staticpro them.
  (emacs_gnutls_pull, emacs_gnutls_push): Call emacs_gnutls_* functions.

* src/image.c: Include w32.h.
  (Vimage_type_cache): Delete.
  (syms_of_image) <Vimage_type_cache>: Don't initialize and staticpro it.
  (CACHE_IMAGE_TYPE, Finit_image_library): Use Vlibrary_cache instead.
  (w32_delayed_load): Move to w32.c.

* src/process.c: Include lisp.h before src/w32.h, not after.
  (wait_reading_process_output): Call emacs_gnutls_record_check_pending
  instead of gnutls_record_check_pending.

* src/w32.h (VlibraryCache, QCloaded_from, w32_delayed_load): Declare.

14 years agoregistry.el (registry-reindex): Fix percentage message.
Teodor Zlatanov [Wed, 4 May 2011 11:28:46 +0000 (11:28 +0000)]
registry.el (registry-reindex): Fix percentage message.

14 years ago* term.c (vfatal): Remove stray call to va_end.
Paul Eggert [Wed, 4 May 2011 07:20:46 +0000 (00:20 -0700)]
* term.c (vfatal): Remove stray call to va_end.

It's not needed and the C Standard doesn't allow it here anyway.

14 years agoUse C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux.
Paul Eggert [Wed, 4 May 2011 07:19:21 +0000 (00:19 -0700)]
Use C99's va_copy to avoid undefined behavior on x86-64 GNU/Linux.

14 years ago* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM
Paul Eggert [Wed, 4 May 2011 06:24:29 +0000 (23:24 -0700)]
* eval.c (verror): OK to create a string of up to MOST_POSITIVE_FIXNUM

bytes.

14 years ago* term.c: Don't include <stdarg.h>, as <lisp.h> does that.
Paul Eggert [Wed, 4 May 2011 06:21:26 +0000 (23:21 -0700)]
* term.c: Don't include <stdarg.h>, as <lisp.h> does that.

14 years agoMerge from mainline.
Paul Eggert [Wed, 4 May 2011 06:13:23 +0000 (23:13 -0700)]
Merge from mainline.

14 years ago* Makefile.in (GNULIB_TOOL_FLAG): Add --conditional-dependencies.
Paul Eggert [Wed, 4 May 2011 06:11:49 +0000 (23:11 -0700)]
* Makefile.in (GNULIB_TOOL_FLAG): Add --conditional-dependencies.
This new gnulib-tool option saves 'configure' the trouble of
checking for strtoull when strtoumax exists.

14 years agoSmall diary-lib.el font-locking fix.
Glenn Morris [Wed, 4 May 2011 02:06:28 +0000 (19:06 -0700)]
Small diary-lib.el font-locking fix.

* lisp/calendar/diary-lib.el (diary-fancy-date-pattern):
Turn it into a function, so it follows changes in calendar-date-style.
(diary-fancy-date-matcher): New function.
(diary-fancy-font-lock-keywords): Use diary-fancy-date-matcher.
(diary-fancy-font-lock-fontify-region-function):
Use diary-fancy-date-pattern as a function.

14 years agodiary-lib.el fix for bug#8583.
Glenn Morris [Wed, 4 May 2011 02:03:30 +0000 (19:03 -0700)]
diary-lib.el fix for bug#8583.

* lisp/calendar/diary-lib.el (diary-fancy-date-pattern):
Do not use non-numbers for `year' etc pseudo-variables.

14 years agoComment fix.
Glenn Morris [Wed, 4 May 2011 02:01:27 +0000 (19:01 -0700)]
Comment fix.

14 years agoMark tiny change.
Glenn Morris [Wed, 4 May 2011 02:00:20 +0000 (19:00 -0700)]
Mark tiny change.

14 years agoSupport :keylist and :crlfiles options to `gnutls-boot' and use them.
Ted Zlatanov [Wed, 4 May 2011 01:45:27 +0000 (20:45 -0500)]
Support :keylist and :crlfiles options to `gnutls-boot' and use them.

* src/gnutls.c (Fgnutls_boot): Support :keylist and :crlfiles options
instead of :keyfiles.  Give GnuTLS the keylist and the CRL lists
as passed in.

14 years agoUse CL-style keyword arguments for `gnutls-negotiate' and allow :keylist and :crlfile...
Ted Zlatanov [Wed, 4 May 2011 01:44:58 +0000 (20:44 -0500)]
Use CL-style keyword arguments for `gnutls-negotiate' and allow :keylist and :crlfiles arguments.

* lisp/net/gnutls.el (gnutls-negotiate): Use CL-style keyword arguments
instead of positional arguments.  Allow :keylist and :crlfiles
arguments.
(open-gnutls-stream): Call it.

* lisp/net/network-stream.el (network-stream-open-starttls): Adjust to
call `gnutls-negotiate' with :process and :hostname arguments.

14 years ago* lisp/minibuffer.el (completion--message): New function.
Stefan Monnier [Wed, 4 May 2011 01:19:32 +0000 (22:19 -0300)]
* lisp/minibuffer.el (completion--message): New function.
(completion--do-completion, minibuffer-complete)
(minibuffer-force-complete, minibuffer-complete-word): Use it.
(completion--do-completion): Don't ignore completion-auto-help when in
icomplete-mode.

14 years ago* lisp/whitespace.el (whitespace-trailing-regexp): Don't rely on the
Stefan Monnier [Wed, 4 May 2011 01:02:09 +0000 (22:02 -0300)]
* lisp/whitespace.el (whitespace-trailing-regexp): Don't rely on the
internal encoding (e.g. tibetan zero is not whitespace).
(global-whitespace-mode): Prefer save-current-buffer.
(whitespace-trailing-regexp): Remove useless save-match-data.
(whitespace-empty-at-bob-regexp): Minor simplification.

14 years agoMerge from mainline.
Paul Eggert [Wed, 4 May 2011 00:26:43 +0000 (17:26 -0700)]
Merge from mainline.